package com.jin.webvideo.externalInterfaces.entity;

import com.jin.webvideo.util.cloneUtil.Cloneable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Cloneable
public class Filmography implements Serializable {
    public static final String ACTIVE_KEY = "active";
    public static final String COUNT_KEY = "count";
    //来自那个平台
    private String platformName;
    //唯一id
    private String id;
    //封面
    private String img;
    //番剧名
    private String name;
    //播放地址
    private String url;
    //参演人信息
    private ParticipationMate mate;
    //剧集
    private List<FilmographyInfo> filmographyInfos;
    //简介
    private String desc;
    //封面
    private String imgSize;
    //标签
    private String tag;
    //视频信息
    private String videoMate;
    //logo
    private String platform;
    //完结时间
    private String year;
    private int displayMode;

    public int getDisplayMode() {
        return displayMode;
    }
    public void setDisplayMode(int displayMode) {
        this.displayMode = displayMode;
    }
    private Map<String,String> attrs = new HashMap<>();

    public Map<String, String> getAttrs() {
        return attrs;
    }
    public String getAttrs(String key) {
        return attrs.get(key);
    }
    public void setAttrs(Map<String, String> attrs) {
        this.attrs = attrs;
    }
    public void setAttrs(String key, String value) {
        this.attrs.put(key, value);
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getYear() {
        return year;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getVideoMate() {
        return videoMate;
    }

    public void setVideoMate(String videoMate) {
        this.videoMate = videoMate;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public void setImgSize(String imgSize) {
        this.imgSize = imgSize;
    }

    public String getImgSize() {
        return imgSize;
    }

    public String getPlatformName() {
        return platformName;
    }

    public void setPlatformName(String platformName) {
        this.platformName = platformName;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public ParticipationMate getMate() {
        return mate;
    }

    public void setMate(ParticipationMate mate) {
        this.mate = mate;
    }

    public List<FilmographyInfo> getVideoInfos() {
        return filmographyInfos;
    }

    public void setVideoInfos(List<FilmographyInfo> filmographyInfos) {
        this.filmographyInfos = filmographyInfos;
    }
    public void addVideoInfo(FilmographyInfo filmographyInfo) {
        if (null == this.filmographyInfos){
            filmographyInfos = new ArrayList<>();
        }
        this.filmographyInfos.add(filmographyInfo);
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }
}
